package user.zc.exception;

public class ExcelException extends RuntimeException {

    private int code;
    private String message;
    private Object[] args;
    private Throwable cause;

    public ExcelException(IResponseEnum responseEnum, Object[] args, String message) {
        super(message);
        this.code = responseEnum.getCode();
        this.message = message;
        this.args = args;

    }
    public ExcelException(IResponseEnum responseEnum, Object[] args, String message, Throwable cause) {
        this(responseEnum, args, message);
        this.cause = cause;
    }
    public ExcelException(int code,String message ){
        super(message);
        this.code = code;
        this.message = message;
    }
}
